//
//  GCMPushViewController.m
//  GeeCityManager
//
//  Created by 聚城科技 on 16/5/10.
//  Copyright © 2016年 聚城科技. All rights reserved.
//

#import "GCMPushViewController.h"

@interface GCMPushViewController ()

@end

@implementation GCMPushViewController


-(void)viewWillAppear:(BOOL)animated{
    
    self.navigationController.navigationBarHidden = NO;
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(20, 80, SCREEN_WIDTH - 40, 100)];
    label.font = [UIFont systemFontOfSize:20];
    label.numberOfLines = 0;
    label.text = [self.dic valueForKey:@"alert"];
    label.textColor = [UIColor colorWithRed:0 green:.67 blue:.65 alpha:1];
    [self.view addSubview:label];
    
    UIButton *btn  = [[UIButton alloc]initWithFrame:CGRectMake(40, 190, SCREEN_WIDTH - 80, 40)];
    [btn setTitle:@"好" forState:UIControlStateNormal];
    [btn setBackgroundColor:[UIColor colorWithRed:0 green:.67 blue:.65 alpha:1]];
    [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(onBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
    // Do any additional setup after loading the view from its nib.
}

-(void)onBtnClick{

    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
